
<?php
$section='User';
if(!isset($_SESSION))
session_start();

if(isset($_SESSION['user'])):
header("Location:/~N02233598/2011/index.php");
else:
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Who am I?</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/~N02233598/2011/style.css" />
<meta charset="utf-8"/>
<title>Login</title>
<link rel="stylesheet" type="text/css" href="/~N02233598/2011/style.css" />
</head>
<body>

<?php
include("../inc/nav.php");
include("../inc/header.php");
?>
<?php include("inc/footer.php"); ?>
<form action='login.php' method='POST'>
Username: <input type='text' name='email'><br>
Password: <input type='password' name='password'><br>
<input type='submit' value='Log in'>
</form> <p>

<a href='register.php'>Register?</a>
</body>
</html>
<?php endif; ?>